package com.googlecode.montelin.client.view;

import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.user.client.ui.Anchor;
import com.google.gwt.user.client.ui.DockLayoutPanel;
import com.googlecode.montelin.client.presenter.IMainPresenter;
import com.googlecode.montelin.client.presenter.MainPresenter.IMainView;

public class MainView extends DockLayoutPanel implements IMainView {

	private IMainPresenter presenter;
	
	public MainView() {
		super(Unit.PX);
		Anchor anchor = new Anchor();
		anchor.setHref("");
		anchor.setText("logout");
		this.addNorth(anchor, 50);
	}
	
	@Override
	public void setPresenter(IMainPresenter presenter) {
		this.presenter = presenter;
	}

	@Override
	public IMainPresenter getPresenter() {
		return presenter;
	}

}
